#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	char  num = 0;
	scanf("%c", &num);
		if (num >= 65 && num <= 99 || num >= 97 && num <= 122)
		{
			if (num >= 65 && num <= 99)
				printf("upper letter No.%d", num-64);
			else if (num >= 97 && num <= 122)
				printf("lower letter No.%d", num-96);
		}
		else
			printf("not letter");
	return 0;
}